* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background-color: #F7F1E8;
    font-size: 18px;
    gap: 0.5rem;
    font-family: Nunito, sans-serif;
    max-width: 700px;
}

input {
    font-size: 18px;
    font-family: Nunito, sans-serif;
}

body {
    display: flex;
    flex-wrap: wrap;
    max-width: 700px;
    padding: 0.5rem;
    gap: 3rem;
}

main {
    width: 100%;
    max-width: 700px;
    background-color: #FFF9F1;
    border-style: solid;
    border-width: 1px 1px 0 1px;
    border-color: #888;
    border-radius: 25px 25px 0 0;
    display: flex;
    flex-direction: column;
    padding: 1rem;
    gap: 2rem;
}

main input {
    width: 100%;
    padding: 0.25rem;
}

dl {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    width: 50%;
}

dl div {
    gap: 0.5rem;
}

dt {
    width: calc(25% - 0.25rem);
}

dd {
    width: calc(75% - 0.25rem);
}

header {
    width: 100%;
}

header menu {
    display: flex;
    flex-direction: column;
}

header div {
    display: flex;
    justify-content: space-between;
    align-items: end;
}

header input,
header button {
    padding: .25rem;
    align-self: stretch;
}

h1 {
    font-family: "Playwrite US Trad", cursive;
    font-size: 180%;
    color: #A8570C;
}

h2 {
    font-family: "Playwrite US Trad", cursive;
    font-size: 125%;
    color: #A8570C;
}

a {
    text-decoration: none;
    color: #8B5E34;
}

a h2 {
    color: #A8570C;
}

a:hover {
    color: #A8570C;
    text-decoration: underline;
}

a h1 {
    color: #A8570C;
}

p {
    color: #2E261C;
}

ul {
    list-style: none;
}

strong {
    font-weight: 600;
}

output {
    color: red;
}

.login_form input {
    padding: 0.25rem;
    width: 80%;
}

.login_form {
    display: flex;
    font-family: Nunito, sans-serif;
    font-size: 125%;
}

.show_password_checkbox {
    display: flex;
    align-items: center;
    font-family: Nunito, sans-serif;
    font-size: 125%;
}

.index_button {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 1rem 0 0;
}

.index_button a {
    background-color: #8B5E34;
    color: #F7F1E8;
    padding: .5em 1em;
    border-radius: 20px;
}

.index_button a:hover {
    background-color: #A8570C;
    color: #FFF9F1;
    text-decoration: none;
}

.recipe {
    background-color: #FFF;
    border-radius: 10px;
    box-shadow: -1px 2px 3px -1px #888;
    padding: 0.5rem;
    width: calc(33% - 1rem);
}

.recipe img {
    width: 100%;
}

.recipe_block {
    display: flex;
    justify-content: start;
    gap: 1rem;
    padding: 1rem 0 1rem;
    align-items: start;
    flex-wrap: wrap;
}

.seperator {
    border: solid;
    border-color: #8B5E34;
    border-width: 0 0 2px 0;
    max-width: 700px;
}

.seperator p {
    justify-self: end;
}

.line_height {
    line-height: 1.25;
    display: block;
}

.recipe_desc {
    display: flex;
    flex-wrap: wrap;
}

.side_by_side {
    display: flex;
    gap: 1rem;
}

.recipe_parameters div {
    display: flex;
    padding: 0.1rem;
    gap: 0.5rem;
    align-items: center;
}

.recipe_parameters input {
    width: 4rem;
}

.recipe_parameters label {
    width: 4rem;
}

.metadata {
    display: flex;
    gap: 0 1.5rem;
    flex-wrap: wrap;
}

textarea {
    width: 100%;
    resize: vertical;
}

.profile {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.profile img {
    width: 5rem;
    height: 5rem;
}

.nav {
    align-items: center;
}

.links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.searchbar {
    padding: .25rem;
}

.searchbar input {
    width: calc(60% - 0.25rem);
}

.searchbar button {
    width: calc(40% - 0.25rem);
}

.hashtags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    text-wrap: nowrap;
}

.hashtag {
    color: #888;
}

.ingredients {
    padding: 0 0 0 1rem;
    text-indent: -1rem;
    width: calc(33%)
}

.steps {
    padding: 0 0 0 1em;
    width: calc(66%);
}

.steps li {
    padding-bottom: 1rem;
}

.steps li textarea {
    vertical-align: top;
}

.step_ingredients {
    list-style: circle;
    padding-left: 0.5rem;
}

.step_ingredients li {
    padding: 0.25rem;
    gap: 0.2rem;
    list-style: circle;
}

.ingredient_amount {
    width: 17%;
}

.ingredient_unit {
    width: 27%;
}

.ingredient_name {
    width: 50%;
}

#edit_page input {
    font-size: 12px;
}

#edit_title input {

    font-family: "Playwrite US Trad", cursive;
    font-size: 180%;
    color: #A8570C;
}

#recipe_page_image {
    transform: rotate(2deg);
    border: solid;
    border-color: #FFF;
    border-width: 5px;
    border-radius: 3px;
    width: 100%;
    padding: 0 0 0.5rem;
}

#login_button {
    align-self: center;
    width: 50%;
    padding: 0.25rem 7rem 0.25rem;
    text-wrap: nowrap;
    min-width: 200px;
}

#edit_title {
    display: flex;
    align-items: start;
    gap: 1rem;
    justify-content: space-between;
}

@media (max-width: 700px) {
    .login_form {
        flex-direction: column;
        gap: 1rem;
    }

    #login_button {
        align-self: center;
    }
}

@media (max-width: 600px) {
    .recipe {
        width: calc(50% - 1rem);
    }
}

@media (max-width: 500px) {
    .side_by_side {
        display: grid;
    }

    main {
        padding: 0;
        border-width: 1px 0 0;
    }

    header {
        padding: 0 0.5rem;
    }
}

@media (max-width: 400px) {
    .recipe {
        width: 100%;
    }

    header div {
        gap: 1rem;
    }
}